<!-- // 展示每个算法的模板 -->
<template>
  <el-card :body-style="{ padding: '5px' }" class="card">
    <div class="imgContainer">
      <slot name="image" class="image"></slot>
    </div>
    <div style="padding: 5px">
      <slot name="name"></slot>
    </div>
  </el-card>
</template>

<style scoped>
.card {
  border-radius: 10px;
  width: 400px;
  height: 350px;
}

.image {
  width: 390px;
  height: 230px;
  object-fit: cover;
}

.imgContainer {
  background-color: grey;
}
</style>